package sc.web.action.demo;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

//import sc.core.dal.demo.CityInfoDAOIbatis;

@Controller
public class Log4jAction {
	
//	private Logger DAOLg = Logger.getLogger(CityInfoDAOIbatis.class);
	private Logger WEBLg = Logger.getLogger(Log4jAction.class);
	private Logger LoginLg = Logger.getLogger("login");
	
	
	@RequestMapping("/demo/log4j.htm")
	public String doLogin(ModelMap model) {
		
//		DAOLg.info("Log4jAction.DAOLg.Info");
//		DAOLg.debug("Log4jAction.DAOLg.Debug");
		
		WEBLg.info("Log4jAction.WEBLg.Info");
		WEBLg.debug("Log4jAction.WEBLg.Debug");
		
		LoginLg.info("Log4jAction.LoginLg.Info");
		LoginLg.debug("Log4jAction.LoginLg.Debug");
		
		return "/demo/log4j";
	}
}
